-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filebeat Crawler and Prospector Refactoring #720
Conversation
973cd3d
to
1728607
Compare
@@ -17,7 +17,6 @@ func readLine(reader processor.LineProcessor) (time.Time, string, int, error) { | |||
|
|||
// Full line read to be returned | |||
if l.Bytes != 0 && err == nil { | |||
logp.Debug("harvester", "full line read") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this line as it generated too much debu output.
@@ -88,8 +95,12 @@ func (fb *Filebeat) Run(b *beat.Beat) error { | |||
// Publishes event to output | |||
go Publish(b, fb) | |||
|
|||
// registrar records last acknowledged positions in all files. | |||
fb.registrar.Run() | |||
for { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need a for loop in done channel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it. Will remove it.
* Start registrar first * Introduce waitgroup for started prospectors. Keep list of prospectors in crawler * Code cleanup
e3cd3c7
to
2d5d214
Compare
Filebeat Crawler and Prospector Refactoring
The goal of this PR is that crawler, prospector properly shut down.